#ifndef __SUBSYSTEM_FURNACE_BLOCK_BEHAVIOR_H__
#define __SUBSYSTEM_FURNACE_BLOCK_BEHAVIOR_H__

#include "SubsystemBlockBehavior.hpp"

using namespace PocketSurvival::Engine;

namespace PocketSurvival
{
    class SubsystemBlockEntities;
    class SubsystemTimeOfDay;
    
    class SubsystemFurnaceBlockBehavior : public SubsystemBlockBehavior
    {
    protected:
        SubsystemBlockEntities *m_subsystemBlockEntities;
        SubsystemTimeOfDay * m_subsystemTimeOfDay;
        
    public:
        SubsystemFurnaceBlockBehavior();
        
        virtual void onBlockAdded(int32_t value, int32_t oldValue, int32_t x, int32_t y, int32_t z) override;
		virtual void onBlockRemoved(int32_t value, int32_t newValue, int32_t x, int32_t y, int32_t z) override;
        virtual bool onInteract(const TerrainRaycastResult &raycastResult, ComponentMiner *componentMiner) override;

        virtual void update(float dt) override;
        virtual const std::string& getName() const override;
        virtual void load(const nlohmann::json& json) override;
        virtual SubUpdateType getUpdateType() override;
    };
}

#endif